package com.example.demo.service.impl;

import com.example.demo.mapper.OrderMapper;
import com.example.demo.pojo.Order;
import com.example.demo.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderMapper orderMapper;
    @Override
    public String sayHi(String name) {
        return "hi"+name;
    }

    @Override
    public Order detail(String id) {
        return orderMapper.selectByPrimaryKey(id);
    }
}
